package com.buyantech.smweb.model;

import javacommon.base.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * 联盟管理
 */
@Entity
@Table(name = "alliance")
public class Alliance extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;

	private String id;
	private String name; ///联盟名称
	private String iocpath;//联盟图标
	private String url;//联盟图标
	private int    percentage;//返利百分比
	private String state;//0可用1不可用
	private String clientType;
	
	public static final String FORMAT_REGDATE = DATE_FORMAT;

	
	@Id
	@GeneratedValue(generator = "uuid-id")
	@GenericGenerator(name = "uuid-id", strategy = "uuid")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}	 

	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}

	public String getIocpath() {
		return iocpath;
	}

	public void setIocpath(String iocpath) {
		this.iocpath = iocpath;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getPercentage() {
		return percentage;
	}

	public void setPercentage(int percentage) {
		this.percentage = percentage;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getClientType() {
		return clientType;
	}

	public void setClientType(String clientType) {
		this.clientType = clientType;
	}
	
	
	
}
